<?php
/**
 * Created by PhpStorm
 * User: rain
 * Date: 2018/12/26
 * Time: 下午5:23
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


/**
 * Class DailyBook
 * @property integer $id
 * @property string $date
 * @property integer $book_id
 * @property integer $active_ct
 * @property integer $new_ct
 * @property integer $auth_ct
 * @property integer $pay_ct
 * @property integer $pay_chapter_ct
 * @property integer $pay_all_chapter_ct
 * @property integer $member_ct
 * @property integer $income
 * @property string $created_at
 * @property string $updated_at
 * @package App\Models
 */
class DailyBook extends Model
{
    protected $table   = 'daily_book';
    protected $guarded = ['id'];

    public function book()
    {
        return $this->belongsTo(Book::class);
    }

}
